from django.conf.urls import patterns, url
import tags.views as tags

urlpatterns = patterns('',
  url(r'^add/(?P<content_type_id>\d+)/(?P<object_id>.+)/(?P<tag_id>\d+)/$', tags.add, name="tags-add"),
  url(r'^remove/(?P<content_type_id>\d+)/(?P<object_id>.+)/(?P<tag_id>\d+)/$', tags.remove, name="tags-remove"),
)

urlpatterns += patterns('tags.views',
  (r'^$', 'tags'),
  (r'^(?P<as_id>[a-zA-Z0-9]{40})/tags/?$', 'asset_tags'),
)

"""
urlpatterns += patterns('assets.tags',
  (r'^tags/?$', 'tags'),
  (r'^assets/(?P<as_id>[a-zA-Z0-9]{40})/tags/?$', 'asset_tags'),
  (r'^assets/(?P<as_id>[a-zA-Z0-9]{40})/tags/add/?$', 'add_tag'),
  (r'^assets/(?P<as_id>[a-zA-Z0-9]{40})/tags/remove/?$', 'remove_tag'),
)
"""
